﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace OASystem.Controllers
{
    public class BaseController : Controller
    {

        public void SetTheme()
        {
            HttpCookie cookie = System.Web.HttpContext.Current.Request.Cookies.Get("easyuiThemeName");
            if (cookie == null || string.IsNullOrEmpty(cookie.Value))
            {
                ViewBag.Theme = "default";
            }
            else
            {
                ViewBag.Theme = cookie.Value;
            }
        }

    }
}
